{{template "layout/layout_admin.html" .}}

{{define "style"}}

{{end}}
{{define "content"}}


    <fieldset class="layui-elem-field layui-field-title" style="margin-top:20px;">
        <legend>执行脚本</legend>
    </fieldset>

    <form class="layui-form" method="post" action="{{urlfor "PublishController.RunExecDo"}}">
        <div class="layui-form-item">
            <div class="layui-input-block">
                <textarea class="layui-textarea" name="cmd" style="height: 500px; background-color: #0C0C0C; color: #fff;padding: 10px; "></textarea>
            </div>
        </div>

        <div class="layui-form-item" style="margin-top:50px;">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit="" lay-filter="formSubmit">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary" onclick="javascript:history.back();">返回</button>
            </div>
        </div>
    </form>



{{end}}


{{define "script"}}
<script>
layui.use(['jquery','table','form'], function() {
    var table = layui.table,
            $ = layui.jquery,
            form = layui.form,
            layer = layui.layer,
            laytpl = layui.laytpl;
    {{template "layout/baseJs.html" .}}


    form.on('submit(formSubmit)', function(data){
        var url = $(data.form).attr('action');
        var params = $(data.form).serialize();
        QI.ajaxForm(url, params);
        return false;
    });

});
</script>
{{end}}